export class CreepShortcutExtension extends Creep {

    getHomeColony() {
        return Empire.colonies[this.memory.home];
    }

    getHome() {
        return this.memory.home;
    }

    getRole() {
        return this.memory.role;
    }

    mark_get() {
        return `<text style="color: #b2f6f3" title="id=${this.id} @ (${this.pos.x}, ${this.pos.y}) in ${this.pos.roomName}">Creep "${this.name}"</text>`;
    }
}

export class PowerCreepShortcutExtension extends PowerCreep {
    mark_get() {
        return `<text style="color: #b2f6f3" title="id=${this.id} @ (${this.pos.x}, ${this.pos.y}) in ${this.pos.roomName}">PowerCreep "${this.name}"</text>`;
    }
}